// 应付汇总
<template>
  <div class="tenantMenu_main main_container">
    <div class="main_header">
      <div class="padding_container">
        <div class="left"><Breadcrumb /></div>
        <div class="right">
          <HeaderOperation :parent="this" />
        </div>
      </div>
    </div>
    <div v-loading="loading" class="main_main">
      <SearchBar :parent="this" />
      <div ref="table_container" class="table_container">
        <el-table
          ref="table"
          :data="tableData"
          :height="tableHeight"
          :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
          row-key="uuid"
          show-summary
          stripe
          border
          :summary-method="getSummaries"
          :cell-style="cellStyle"
          :cell-class-name="cellClassName"
          @cell-click="cellClick"
          @sort-change="(column)=>{sortChange(column, this)}"
          @selection-change="(val)=>{selectionChange(val, this)}"
        >
          <el-table-column type="selection" width="70" align="center" />
          <Column
            v-for="(column,index) in tableColumns"
            :key="index"
            :prop="column.prop"
            :is-show="column.isShow"
            :label="column.label"
            :sortable="column.sortable"
            :width="column.width"
            :min-width="column.minWidth"
            :align="column.align"
            :is-overdue-status-name="column.isOverdueStatusName"
          />
        </el-table>
      </div>
    </div>
    <div class="main_bottom">
      <pagination
        :total="total"
        :page.sync="pageData.pageNum"
        :limit.sync="pageData.pageSize"
        :selected-num="selectionsAll.length"
        @pagination="getList"
      />
    </div>

  </div>
</template>

<script>
import { list, listPaymentOrderSummarizingForExport } from '@/api/receivableAndPayable/receivableAndPayableManage/paymentOrderSummarizing.js'
import { getInfo as getSupplierInfo } from '@/api/purchaseManage/supplierInfo'
import { getInfo as getOutsourceInfo } from '@/api/outsourceManage/outsourceSupplier'
import { getInfo as getCustomerInfo } from '@/api/saleManage/customerInfo'
import ShowDetail from '@/components/JLINK2/common/ShowDetail'
import ShowCustomerDetail from '@/components/JLINK2/common/ShowDetailColumnThree'

export default {
  name: 'Index',
  data() {
    return {
      loading: true,
      pageId: '应付账款汇总表', // 页面唯一标识
      pageExportId: '应付账款汇总表导出',
      pageData: {
        pageNum: 1,
        pageSize: 20,
        searchTime: [],
        orderByColumn: 'supplierCode',
        isAsc: 'desc'
      },
      totalWord: ['taxAllPrice', 'hasReceiptPrice', 'unReceiptPrice', 'hasPrice', 'unPrice', 'otherPrice', 'hasOtherPrice', 'totalPrice', 'totalHasPrice', 'totalUnPrice'], // 合计导出字段
      // tableKey: 1,
      total: 1, // 数据一共有多少条
      mainId: 'onlyId', // 表格行ID
      tableHeight: '0', // 表格高度
      tableData: [], // 导出表格数据
      tableData2: [], // 表格数据
      tableColumns: [], // 表格实际用的字段
      searchColumns: [], // 搜索区实际用的字段
      selections: [], // 表格当前页所选中的行
      selectionsAll: [], // 表格所有页选中的行
      defaultTableColumns: [// 表格常规字段（初始值）
        { prop: 'supplierCode', label: '供应商编码', minWidth: '160', isRegular: true },
        { prop: 'supplierName', label: '供应商名称', minWidth: '160', canOrder: false, isRegular: true },
        { prop: 'taxAllPrice', label: '含税总金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasReceiptPrice', label: '已开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unReceiptPrice', label: '未开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasPrice', label: '已付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unPrice', label: '未付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'otherPrice', label: '附加付款金额', align: 'right', position: 'right', canOrder: false, minWidth: '150' },
        { prop: 'hasOtherPrice', label: '附加已付金额', align: 'right', position: 'right', canOrder: false, minWidth: '150' },
        { prop: 'totalPrice', label: '累计付款金额', align: 'right', position: 'right', canOrder: false, minWidth: '150' },
        { prop: 'totalHasPrice', label: '累计已付金额', align: 'right', position: 'right', canOrder: false, minWidth: '150' },
        { prop: 'totalUnPrice', label: '累计未付款金额', align: 'right', position: 'right', minWidth: '150', canOrder: false }
      ],
      defaultTableColumns2: [// 表格常规字段（初始值）
        { prop: 'supplierCode', label: '供应商编码', minWidth: '160', canOrder: false, isRegular: true },
        { prop: 'supplierName', label: '供应商名称', minWidth: '160', isRegular: true },
        { prop: 'taxAllPrice', label: '含税总金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasReceiptPrice', label: '已开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unReceiptPrice', label: '未开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasPrice', label: '已付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unPrice', label: '未付款金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'otherPrice', label: '附加付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasOtherPrice', label: '附加已付金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalPrice', label: '累计付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalHasPrice', label: '累计已付金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalUnPrice', label: '累计未付款金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length, canOrder: false }
      ],
      exportTableColumns: [// 表格常规字段（初始值）
        { prop: 'supplierCode', label: '供应商编码', minWidth: '160', canOrder: false, isRegular: true },
        { prop: 'supplierName', label: '供应商名称', minWidth: '160', isRegular: true },
        { prop: 'taxAllPrice', label: '含税总金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasReceiptPrice', label: '已开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unReceiptPrice', label: '未开票金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasPrice', label: '已付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'unPrice', label: '未付款金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'otherPrice', label: '附加付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'hasOtherPrice', label: '附加已付金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalPrice', label: '累计付款金额', align: 'right', position: 'right', canOrder: false, minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalHasPrice', label: '累计已付金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length },
        { prop: 'totalUnPrice', label: '累计未付金额', align: 'right', position: 'right', minWidth: this.SETTINGS.settings_decimalDigits_length, canOrder: false }
      ],
      defaultExport: [],
      defaultSearchColumns: [// 搜索区常规字段（初始值）
        // { prop: 'saleOrderStatus', label: '客户编码', type: 'select-multiple', optionsName: 'statusOptions' },
        { prop: 'supplierCode', label: '供应商编码', type: 'input' },
        { prop: 'supplierName', label: '供应商名称', type: 'input' },
        { prop: 'searchTime', label: '日期', type: 'time' }

      ],
      timeDefault: [], // 存放字段的默认值
      operationData: [ // 右上角的操作按钮
        { label: '批量导出3', perm: '' },
        { label: '页面配置2', perm: '' }
      ],
      equipmentList: [],
      totalData: {
        bottomHasOtherPrice: 0,
        bottomHasPrice: 0,
        bottomHasReceiptPrice: 0,
        bottomOtherPrice: 0,
        bottomTaxAllPrice: 0,
        bottomTotalHasPrice: 0,
        bottomTotalPrice: 0,
        bottomTotalUnPrice: 0,
        bottomUnPrice: 0,
        bottomUnReceiptPrice: 0
      },
      statusOptions4: [
        // { value: undefined, label: '全部' },
        { value: '1', label: '逾期' },
        { value: '0', label: '正常' }
      ],
      showKey: [ // 查看详情的配置（根据配置自动生成查看页面）
        {
          name: '基本信息',
          columns: [
            { type: 'form', name: '供应商编码', key: 'code' }, // type: 'form' 表示是普通的表单展示
            { type: 'form', name: '供应商名称', key: 'name' },
            { type: 'form', name: '简称', key: 'simpleName' },
            { type: 'form', name: '供应商类别', key: 'categoryLabel' },
            { type: 'form', name: '所属业务员', key: 'belongBysName', length: 'double' }, // length:'double' 表示占两列
            { type: 'form', name: '引入日期', key: 'introduceTime' },
            { type: 'form', name: '备注', key: 'remark', length: 'double' },
            { type: 'form', name: '状态', key: 'statusName' }
          ]
        },
        {
          name: '联系信息',
          columns: [
            { type: 'form', name: '联系人', key: 'contacts' }, // type: 'form' 表示是普通的表单展示
            { type: 'form', name: '联系电话', key: 'phone' },
            { type: 'form', name: '地址', key: 'address' },
            { type: 'form', name: '邮箱', key: 'email' },
            { type: 'form', name: '传真', key: 'fax' },
            { type: 'form', name: '公司网址', key: 'companyUrl' }
          ]
        },
        {
          name: '银行信息',
          columns: [
            {
              type: 'table', name: '', key: 'bankList', columns: [ // type: 'table' 表示是表格
                { name: '银行账号', key: 'bankAccount' },
                { name: '账户名称', key: 'accountName' },
                { name: '收款银行', key: 'dueBank' },
                { name: '注意事项', key: 'announcements' }
              ]
            }
          ]
        },
        {
          name: '退货信息',
          columns: [
            {
              type: 'table', name: '', key: 'returnGoodsList', columns: [ // type: 'table' 表示是表格
                { name: '交货方式', key: 'deliveryTypeLabel' }, // type: 'form' 表示是普通的表单展示
                { name: '收货人', key: 'consignee' },
                { name: '联系方式', key: 'contract' },
                { name: '收货地址', key: 'receiveAddress' },
                { name: '注意事项', key: 'announcements' },
                { name: '默认', key: 'isDefault' }
              ]
            }
          ]
        }
      ],
      showKey1: [ // 查看详情的配置（根据配置自动生成查看页面）
        {
          name: '基本信息',
          columns: [
            { type: 'form', name: '客户编码', key: 'code' }, // type: 'form' 表示是普通的表单展示
            { type: 'form', name: '客户名称', key: 'name' },
            { type: 'form', name: '简称', key: 'abbreviation' },
            { type: 'form', name: '客户类别', key: 'typeLabel' },
            { type: 'form', name: '所属业务员', key: 'salesmanRealName' }, // length:'double' 表示占两列
            { type: 'form', name: '备注', key: 'remark', length: 'double' },
            { type: 'form', name: '状态', key: 'statusName', length: 'double' },
            {
              type: 'table', name: '客户料号', key: 'materialData', columns: [ // type: 'table' 表示是表格
                { name: '客户料号', key: 'saleCustomerMaterialCode' },
                { name: '物料编码', key: 'materialCode' },
                { name: '物料名称', key: 'materialName' },
                { name: '规格型号', key: 'materialModel' },
                { name: '物料单位', key: 'materialUnitName' }
              ]
            },
            {
              type: 'table', name: '发货信息', key: 'data', columns: [ // type: 'table' 表示是表格
                { name: '交货方式', key: 'deliveryTypeLabel' },
                { name: '收货人', key: 'consignee' },
                { name: '联系方式', key: 'phone' },
                { name: '收货地址', key: 'deliveryAddress' },
                { name: '注意事项', key: 'attentionMatters' },
                { name: '默认', key: 'isDefault' }
              ]
            }
          ]
        },
        // {
        //   name: '税务信息',
        //   columns: [
        //     { type: 'form', name: '计税方式', key: 'taxTypeLabel' }, // type: 'form' 表示是普通的表单展示
        //     { type: 'form', name: '税率%', key: 'taxRateLabel' },
        //     { type: 'form', name: '结算方式', key: 'settlementTypeLabel' },
        //     { type: 'form', name: '结算币别', key: 'settlementCurrencyLabel' }
        //   ]
        // },
        {
          name: '联系信息',
          columns: [
            { type: 'form', name: '联系人', key: 'contacts' }, // type: 'form' 表示是普通的表单展示
            { type: 'form', name: '联系电话', key: 'phone' },
            { type: 'form', name: '联系地址', key: 'address' },
            { type: 'form', name: '邮箱', key: 'email' },
            { type: 'form', name: '传真', key: 'fax' },
            { type: 'form', name: '公司网址', key: 'webAddress' }
          ]
        },
        {
          name: '开票信息',
          columns: [
            { type: 'form', name: '名称', key: 'accountName' }, // type: 'form' 表示是普通的表单展示
            { type: 'form', name: '纳税人识别号', key: 'taxpayerNumber' },
            { type: 'form', name: '开户行', key: 'accountBank' },
            { type: 'form', name: '账号', key: 'accountNumber' },
            { type: 'form', name: '电话', key: 'invoicePhone' },
            { type: 'form', name: '地址', key: 'invoiceAddress' }
          ]
        }
      ],
      showKey2: [
        {
          name: '基本信息',
          columns: [
            { type: 'form', name: '销售订单号', key: 'code' },
            { type: 'form', name: '销售人员', key: 'orderName' },
            { type: 'form', name: '制单日期', key: 'orderTime' },
            { type: 'form', name: '订单类型', key: 'orderTypeLabel' },
            { type: 'form', name: '客户名称', key: 'customerName' },
            { type: 'form', name: '订货日期', key: 'orderGoodsTime' },
            { type: 'form', name: '合同号', key: 'contractCode' },
            { type: 'form', name: '未税总金额', key: 'allPriceThousandths' },
            { type: 'form', name: '含税总金额', key: 'taxAllPriceThousandths' },
            { type: 'form', name: '税额', key: 'taxThousandths' },
            { type: 'file', name: '附件', fileName: 'fileName', fileRealName: 'fileRealName', fileUrl: 'url' },
            { type: 'form', name: '备注', key: 'remark', length: 'double' },
            {
              type: 'table', name: '', key: 'data'
            },
            { type: 'print', name: '打印记录', key: '' }
          ]
        },
        {
          name: '客户信息',
          columns: [
            // { type: 'formData', name: '计税方式', key: 'taxTypeLabel' },
            // { type: 'formData', name: '税率%', key: 'taxRateLabel' },
            // { type: 'formData', name: '结算方式', key: 'settlementTypeLabel' },
            // { type: 'formData', name: '结算币别', key: 'settlementCurrencyLabel' },
            { type: 'formData2', name: '交货方式', key: 'deliveryTypeLabel' },
            { type: 'formData2', name: '联系人', key: 'consignee' },
            { type: 'formData2', name: '联系方式', key: 'phone' },
            { type: 'formData2', name: '注意事项', key: 'attentionMatters' },
            { type: 'formData2', name: '收货地址', key: 'deliveryAddress', length: 'double' }
          ]
        },
        {
          name: '审批详情',
          columns: [
            { type: 'review', name: '评审进度', key: 'taskList' }
          ]
        }
      ]
    }
  },
  watch: {
    tableData() {
      this.$nextTick(() => {
        for (const elementNodeListOfElement of document.querySelectorAll('.SaleOrderCodeColumnClass')) {
          if (!elementNodeListOfElement.childNodes[0].childNodes[0].className || elementNodeListOfElement.childNodes[0].childNodes[0].className == 'commonTableColumn') {
            const paddingNode = document.createElement('div')
            paddingNode.className = 'SaleOrderCodeColumnClass_expand'
            paddingNode.innerHTML = ''
            elementNodeListOfElement.childNodes[0].insertBefore(paddingNode, elementNodeListOfElement.childNodes[0].childNodes[0])
          }
        }
      })
    }
  },
  created() {
    this.timeDefault = [this.$moment().startOf('month').format('YYYY-MM-DD'),
      this.$moment(new Date()).format('YYYY-MM-DD')]
  },
  mounted() {
    this.getDictSelects()
  },
  methods: {

    cellClassName({ row, column, rowIndex, columnIndex }) {
      if (columnIndex == 1) {
        return 'SaleOrderCodeColumnClass'
      }
      if (!row.isNotselected) {
        return 'displayNoneClass'
      }
    },
    tableSelectable(row, index) {
      if (row.isNotselected) {
        return true
      } else {
        return false
      }
    },
    cellStyle({ row, column }) {
      if (column.property == 'supplierCode') {
        return {
          cursor: 'pointer',
          color: '#387bfc'
        }
      }
      if (column.property == 'supplierName') {
        return {
          cursor: 'pointer',
          color: '#387bfc'
        }
      }
    },
    cellClick(row, column, cell) {
      switch (column.property) {
        case 'supplierCode':
          this.showDetail(row)
          break
      }
      switch (column.property) {
        case 'supplierName':
          this.showDetail(row)
          break
      }
    },
    showDetail(row) {
      if (row.formType == '2') {
        getSupplierInfo(row.supplierId).then(res => {
          // 此处展示的页面有是否默认字段，后端给的是1，前端处理成 是
          if (res.data.returnGoodsList) {
            res.data.returnGoodsList.forEach(item => { item.isDefault == '1' ? item.isDefault = '是' : item.isDefault = '' })
          }
          this.$layer.iframe({// 弹框
            content: {
              content: ShowDetail, // 传递的组件对象
              parent: this, // 当前的vue对象
              data: {
                showData: res.data,
                showKey: this.showKey
              }// props
            },
            area: ['1320px', '700px'],
            title: '查看供应商', // 标题
            shadeClose: false // 点击遮罩是否关闭
          })
        })
      } else if (row.formType == '3') {
        getOutsourceInfo(row.supplierId).then(res => {
          // 此处展示的页面有是否默认字段，后端给的是1，前端处理成 是
          if (res.data.returnGoodsList) {
            res.data.returnGoodsList.forEach(item => { item.isDefault == '1' ? item.isDefault = '是' : item.isDefault = '' })
          }
          this.$layer.iframe({// 弹框
            content: {
              content: ShowDetail, // 传递的组件对象
              parent: this, // 当前的vue对象
              data: {
                showData: res.data,
                showKey: this.showKey
              }// props
            },
            area: ['1320px', '700px'],
            title: '查看供应商', // 标题
            shadeClose: false // 点击遮罩是否关闭
          })
        })
      } else if (row.formType == '1') {
        getCustomerInfo(row.supplierId).then(res => {
          // 此处展示的页面有是否默认字段，后端给的是1，前端处理成 是
          if (res.data.data) {
            res.data.data.forEach(item => { item.isDefault == '1' ? item.isDefault = '是' : item.isDefault = '' })
          }
          this.$layer.iframe({// 弹框
            content: {
              content: ShowCustomerDetail, // 传递的组件对象
              parent: this, // 当前的vue对象
              data: {
                showData: res.data,
                showKey: this.showKey1
              }// props
            },
            area: ['1320px', '700px'],
            title: '查看客户信息', // 标题
            shadeClose: false // 点击遮罩是否关闭
          })
        })
      }
    },
    getList() {
      list(this.pageData).then(res => {
        res.data.data.forEach((item) => { item.isNotselected = true })
        res.data.data.map((item) => {
          if (item.children && item.children.length > 0) {
            item.children.forEach(olo => {
              olo.isBgcClass = true
            })
          }
        })
        this.tableData = res.data.data
        this.totalData.bottomHasOtherPrice = res.bottomHasOtherPrice
        this.totalData.bottomHasPrice = res.bottomHasPrice
        this.totalData.bottomOtherPrice = res.bottomOtherPrice
        this.totalData.bottomTaxAllPrice = res.bottomTaxAllPrice
        this.totalData.bottomTotalHasPrice = res.bottomTotalHasPrice
        this.totalData.bottomTotalPrice = res.bottomTotalPrice
        this.totalData.bottomTotalUnPrice = res.bottomTotalUnPrice
        this.totalData.bottomUnPrice = res.bottomUnPrice
        this.totalData.bottomUnReceiptPrice = res.bottomUnReceiptPrice

        this.total = res.data.total
        this.loading = false
        this.$nextTick(() => {
          this.setSelectRow(this)// 设置行选中
          this.tableHeight = this.$refs.table_container.offsetHeight
        })
      })
    },
    // 合计行
    getSummaries(param) {
      const {
        columns
      } = param
      const sums = []
      columns.forEach((column, index) => {
        if (index == 0) {
          sums[index] = '合计'
          return
        }
        switch (column.property) { // 含税总金额
          case 'taxAllPrice':
            sums[index] = this.totalData.bottomTaxAllPrice
            break
        }
        switch (column.property) { // 已开票金额
          case 'hasReceiptPrice':
            sums[index] = this.totalData.bottomHasReceiptPrice
            break
        }
        switch (column.property) { // 未开票金额
          case 'unReceiptPrice':
            sums[index] = this.totalData.bottomUnReceiptPrice
            break
        }
        switch (column.property) { // 已收款
          case 'hasPrice':
            sums[index] = this.totalData.bottomHasPrice
            break
        }
        switch (column.property) { // 未收款
          case 'unPrice':
            sums[index] = this.totalData.bottomUnPrice
            break
        }
        switch (column.property) { // 附加收款金额
          case 'otherPrice':
            sums[index] = this.totalData.bottomOtherPrice
            break
        }
        switch (column.property) { // 附加已收金额
          case 'hasOtherPrice':
            sums[index] = this.totalData.bottomHasOtherPrice
            break
        }
        switch (column.property) { // 累计收款金额
          case 'totalPrice':
            sums[index] = this.totalData.bottomTotalPrice
            break
        }
        switch (column.property) { // 累计已收金额
          case 'totalHasPrice':
            sums[index] = this.totalData.bottomTotalHasPrice
            break
        }
        switch (column.property) { // 累计未收款金额
          case 'totalUnPrice':
            sums[index] = this.totalData.bottomTotalUnPrice
            break
        }
      })
      return sums
    },
    getExportData(data) {
      return new Promise(function(resolve, reject) {
        listPaymentOrderSummarizingForExport(data).then(res => {
          // res.data.dataTable
          resolve({ data: res.data.data })
          //   this.tableData = res.data.dataTable.data
        })
      })
    }
  }
}
</script>

<style lang="less" scoped>
/deep/.el-tooltip{
  display: flex;
}
.adequate_space{
  color: #19BE6B;
  background-color:rgb(223, 249, 241) ;
  border-radius: 3px;
  padding: 3px 0;
  width: 80px;
  text-align: center;
}
.insufficient_space{
  color: rgb(231,108,108);
  background-color:rgb(253,238,238) ;
  border-radius: 3px;
  padding: 3px 0;
  width: 80px;
  text-align: center;
}
/deep/ .el-table__footer-wrapper tbody td.el-table__cell{
  background-color: rgba(0,0,0,0);
}
/deep/ .el-table__footer-wrapper tbody td.el-table__cell{
  background-color: transparent!important;
}
/deep/ .el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell {
  border-bottom: 1px solid #dfe6ec;
}

/deep/ .SaleOrderCodeColumnClass_expand{
  display: inline-block;
  width: 20px;
  line-height: 20px;
  height: 20px;
  text-align: center;
  margin-right: 3px;
}
/deep/.el-table .displayNoneClass .cell .el-checkbox__inner{
  display: none
}
</style>
